﻿
/****** Object:  User Defined Function dbo.DupaLuna    Script Date: 22/02/2006 5:44:11 PM ******/
CREATE FUNCTION DupaLuna (@Valoare DECIMAL(20,2), @lunaCurenta smallint, @lunaVerificata smallint)  
RETURNS DECIMAL(20,2) AS  
BEGIN 
	DECLARE @ret DECIMAL(20,2)
	SET @ret = 0
	IF @lunaVerificata>=@lunaCurenta
		SET @ret = @Valoare
	RETURN @ret	
END